
public class Test1 {

	public static void main(String[] args) {
		
		int i=1;
		int sum = 0;
		
		while(true) {
			sum = sum + i*i;
			if(sum>1000) {
				i--;
				break;
			}
			i++;
		}
		
		System.out.println(i);
		
		
		
		
		
		
		
		
		
		
		
		
		
	}
	
}
